package sentData;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Course implements Serializable {

	private static final long serialVersionUID = -5668390783168074978L;

	private String title;
	private String courseNumber;
	private List<Lecture> lectures;
	
	public List<Lecture> getLectures() {
		return lectures;
	}

	public void setLectures(List<Lecture> lectures) {
		this.lectures = lectures;
	}

	public Course(String title, String courseNumber, List<Lecture> lectures) {
		this.title = title;
		this.courseNumber = courseNumber;
		this.lectures = lectures;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCourseNumber() {
		return courseNumber;
	}

	public void setCourseNumber(String courseNumber) {
		this.courseNumber = courseNumber;
	}

	public String toString() {
		String result = "course: " + courseNumber + " " + title+"(";
		for (Lecture lecture : lectures) {
			result += lecture + "";
		}
		result += ")";
		return result;

	}

}
